import { BaseCommand } from "./BaseCommand";
import { API_EVENT, COMMAND_STATUS } from "@/FrontProcessing/interface";
/**
 * Cmd_View_ModeChange
 * @description 模型状态改变
 */
export class Cmd_View_ModeChange extends BaseCommand {
  event = API_EVENT.VIEW_MODE_CHANGE;
  execute(): boolean {
    this.status = COMMAND_STATUS.RUNNING;
    this.system.view_change_mode(this.params.mode);
    this.log();
    this.status = COMMAND_STATUS.FINISHED;
    return true;
  }

  undo(): boolean {
    return false;
  }
}
